#ifndef EXCEPTION_H
#define EXCEPTION_H

#include "../text/String.h"

class Exception
{
	private: String message;
	private: Exception* cause;

	public: virtual ~Exception() {}
	public: Exception() {}
	public: Exception(String message) {this->message = message;}

	public: Exception(String message, Exception* cause)
	{
		this->message = message;
		this->cause   = cause;
	}

	public: Exception(Exception* cause)
	{
		this->cause = cause;
	}

	public: virtual String getMessage(){return message;}

	public: virtual Exception* getCause(){return cause;}
};

#endif
